package com.xnyzc.lhy.mis.mapper.punishment;


import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.xnyzc.lhy.mis.entity.punishment.OADUserWhetherPunishmentInfo;
import com.xnyzc.lhy.mis.entity.punishment.OaDUserBasicInformation;
import com.xnyzc.lhy.mis.entity.punishment.OaDUserPenaltyDetail;
import com.xnyzc.lhy.mis.entity.punishment.OaDUserPunishedInfo;
import org.apache.ibatis.annotations.Param;

import java.util.Date;
import java.util.List;

/**
 * <p>
 * 违规司机详情表 Mapper 接口
 * </p>
 *
 * @author cuixiaojian
 * @since 2019-10-27
 */
public interface OaDUserPenaltyDetailMapper extends BaseMapper<OaDUserPenaltyDetail> {
        /**
         * 查询司机处罚详情和
         * */
        OaDUserBasicInformation selectDriverDetials(@Param("driverId")Long driverId);

        /**
         *查询司机 违规内容 处罚内容 处罚解除
         * */
        List<OaDUserPunishedInfo> queryDetailsDriverOffences(@Param("driverId")Long driverId);

        /**
         * 查询司机待出发行为
         * */
        List<OADUserWhetherPunishmentInfo> queryDriversWhetherPunishment(@Param("driverId")Long driverId);

        List<OaDUserPenaltyDetail> getUnPunishmentList(@Param("startDate") Date startDate, @Param("endDate")Date endDate);
}
